<template>
<div>
  <router-view></router-view>
  <Tabbar v-show="orShow"></Tabbar>
</div>
</template>

<script lang="ts">
  import { defineComponent,watch,ref } from "vue"
  import {useRoute} from 'vue-router'
  export default defineComponent({
    name:'App',
  })
</script>

<script lang="ts" setup>
import Tabbar from '@/components/Tabbar/index.vue'
const orShow = ref(true)  
const route = useRoute()
watch(route,()=>{
  if(route.path==='/search'){
    orShow.value = false
  }else{
    orShow.value = true
  }
})
</script>

<style scoped>

</style>





